{% extends "content" ~ DIR ~ "post.twig" %}

{% block content %}
{% if post.title is not empty %}
<header>
<h2>
<a href="{{ post.url() }}" rel="bookmark" title="{{ 'Permanent link to &#8220;%s&#8221;' | translate | format(post.title | striptags | normalize | fix(true)) }}">{{ post.title }}</a>
</h2>
<h3>
<a href="{{ url('author/' ~ post.author.id) }}">{{ "Written by %s" | translate | format(post.author.name | fix(false, true)) }}</a>
</h3>
</header>
{% endif %}
{% if post.description is not empty %}
<section class="description" aria-label="{{ 'Text Content' | translate }}">
{{ post.description }}
</section>
{% endif %}
<section class="audio" aria-label="{{ 'File Attachment' | translate }}">
{{ post.audio_player }}
</section>
{% endblock %}
